-- GENERATED SPELL FOR [Saltscale Tide Lord] --


function spell0_875(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_875', 0, 1)
end

function spell1_875(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_875', 7000, 1)
end

function Sorts_875(pUnit, Event)
local choix_sorts_875 = math.random(0, 1)
if choix_sorts_875 == 0 then
pUnit:RegisterEvent('spell0_875', 1, 1)
end
if choix_sorts_875 == 1 then
pUnit:RegisterEvent('spell1_875', 1, 1)
end
end

function mob875_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_875', math.random(1500, 3000), 1)
end

function mob875_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob875_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob875_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(875, 1, 'mob875_Action')
RegisterUnitEvent(875, 2, 'mob875_Leave')
RegisterUnitEvent(875, 3, 'mob875_Kill')
RegisterUnitEvent(875, 4, 'mob875_Die')
